All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class quicktime.std.music.MusicMIDIPacket

java.lang.Object
   |
   +----quicktime.util.QTByteObject
           |
           +----quicktime.std.music.MusicMIDIPacket

public final class MusicMIDIPacket
extends QTByteObject
implements PrimitivesLib, Cloneable
Describes the MIDI data that is passed by note allocation calls.


Variable Index

 o kNativeSize
This is the size (the number of bytes) that are required for this class

Constructor Index

 o MusicMIDIPacket()
The MusicMIDIPacket is used to contain MIDI messages that can be sent.
 o MusicMIDIPacket(byte[])
The incoming byte[] contains MIDI data only.

Method Index

 o clone()
Make a copy of the MusicMIDIPacket.
 o getMIDIData()
Gets the current MIDI data.
 o getReserved()
Gets the reserved field setting.
 o setDataByte(int, int)
Sets the current MIDI data byte at index to the supplied value.
 o setMIDIData(byte[])
Sets the current MIDI data.
 o toString()
Return a string representation of this object.

Variables

 o kNativeSize
 public static final int kNativeSize
This is the size (the number of bytes) that are required for this class

Constructors

 o MusicMIDIPacket
 public MusicMIDIPacket()
The MusicMIDIPacket is used to contain MIDI messages that can be sent. out through QT

QuickTime__MusicMIDIPacket

 o MusicMIDIPacket
 public MusicMIDIPacket(byte midiData[])
The incoming byte[] contains MIDI data only.

Methods

 o getMIDIData
 public byte[] getMIDIData()
Gets the current MIDI data. The length of the packet is the length of the data array that is returned

Returns:
the data array containing MIDI data
 o setMIDIData
 public void setMIDIData(byte mData[])
Sets the current MIDI data. The length of the packet is the length of the data array that is supplied. The maximum length of the data packet is 249 bytes - a longer byte array will be truncated to the first 249 bytes

Parameters:
mData - the MIDI data
 o setDataByte
 public void setDataByte(int index,
                         int val)
Sets the current MIDI data byte at index to the supplied value.

Parameters:
index - the data byte to set
val - the new value
 o getReserved
 public int getReserved()
Gets the reserved field setting. Will contain zero or one of the kMusicPacket.. constants

Returns:
the reserved field value
 o toString
 public String toString()
Return a string representation of this object.

Overrides:
toString in class QTByteObject
 o clone
 public Object clone()
Make a copy of the MusicMIDIPacket.

Overrides:
clone in class Object

All Packages  Class Hierarchy  This Package  Previous  Next  Index